package signAction;

import java.util.*;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import signBean.StudentBean;

import com.opensymphony.xwork2.ActionContext;

public class StudentSee {


	private String name="";
	private String choseclassid="";
	private String gender="";
	private String age="";
	private String email="";
	private String educationbackground="";
	private String graduateuniversity="";
	private String phone="";
	private String mobile="";
	private String qq="";
	private String address="";
	private String question="";
	private String home="";


	
	public String execute(){
		StudentBean stu = new StudentBean();
		String classname = stu.getClassName(choseclassid);
		HttpServletRequest request = ServletActionContext.getRequest();
		request.getSession().setAttribute("name", name);
		request.getSession().setAttribute("choseclassid", choseclassid);
		request.getSession().setAttribute("classname", classname);
		request.getSession().setAttribute("gender", gender);
		request.getSession().setAttribute("age", age);
		request.getSession().setAttribute("email", email);
		request.getSession().setAttribute("educationbackground", educationbackground);
		request.getSession().setAttribute("graduateuniversity", graduateuniversity);
		request.getSession().setAttribute("phone", phone);
		request.getSession().setAttribute("mobile", mobile);
		request.getSession().setAttribute("qq", qq);
		request.getSession().setAttribute("address", address);
		request.getSession().setAttribute("question", question);
		request.getSession().setAttribute("home", home);
		return "studentsee";
	}



	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public String getChoseclassid() {
		return choseclassid;
	}



	public void setChoseclassid(String choseclassid) {
		this.choseclassid = choseclassid;
	}



	public String getGender() {
		return gender;
	}



	public void setGender(String gender) {
		this.gender = gender;
	}



	public String getAge() {
		return age;
	}



	public void setAge(String age) {
		this.age = age;
	}



	public String getEmail() {
		return email;
	}



	public void setEmail(String email) {
		this.email = email;
	}



	public String getEducationbackground() {
		return educationbackground;
	}



	public void setEducationbackground(String educationbackground) {
		this.educationbackground = educationbackground;
	}



	public String getGraduateuniversity() {
		return graduateuniversity;
	}



	public void setGraduateuniversity(String graduateuniversity) {
		this.graduateuniversity = graduateuniversity;
	}



	public String getPhone() {
		return phone;
	}



	public void setPhone(String phone) {
		this.phone = phone;
	}



	public String getMobile() {
		return mobile;
	}



	public void setMobile(String mobile) {
		this.mobile = mobile;
	}



	public String getQq() {
		return qq;
	}



	public void setQq(String qq) {
		this.qq = qq;
	}



	public String getAddress() {
		return address;
	}



	public void setAddress(String address) {
		this.address = address;
	}



	public String getQuestion() {
		return question;
	}



	public void setQuestion(String question) {
		this.question = question;
	}



	public String getHome() {
		return home;
	}



	public void setHome(String home) {
		this.home = home;
	}


}
